package com.ysd.modules.sys.dao;

import com.ysd.modules.sys.entity.Topic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dapeng
 * @since 2021-07-15
 */

@Mapper
public interface TopicSysDao extends BaseMapper<Topic> {

    /**
     * 获取指定条数的随机题目
     * @return
     */
    List<Topic> selectTopicListByRandom(int topicNum);

}
